#!/usr/bin/python
#coding=utf-8

import xml.etree.ElementTree as ET

tree = ET.parse('test_result.xml')
root = tree.getroot()

for child in root.findall('Module'):
    moduleName = child.get('name')
    abiInfo = child.get('abi')
    isDone = child.get('done')
    passCount = child.get('pass')

    print(moduleName, abiInfo, isDone, passCount)







    # for childInfo in child:
    #     print(childInfo.tag, childInfo.attrib)
    #
    #     for childChildInfo in childInfo:

#         print(childChildInfo.tag, childChildInfo.attrib)
